package com.cskaoyan.bean.pojo;

import com.cskaoyan.bean.Mall;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class MallTopic {
    private Integer id;

    private String title;

    private String subtitle;
    @NotNull(message = "底价不能为空")
    @Min(value = 10,message = "底价太小")
    private BigDecimal price;
    @NotBlank(message = "阅读量不能为空")
    private String readCount;

    private String picUrl;

    private Integer sortOrder;

    private String[] goods;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;
    @NotBlank(message = "内容不能为空")
    private String content;


}